import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("apartment_layout", { schema: "cbox" })
export class ApartmentLayout {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", {
    name: "main_bedroom_count",
    unsigned: true,
    default: () => "'0'",
  })
  mainBedroomCount: number;

  @Column("int", {
    name: "bedroom_count",
    unsigned: true,
    default: () => "'0'",
  })
  bedroomCount: number;

  @Column("int", { name: "toilet_count", unsigned: true })
  toiletCount: number;

  @Column("int", { name: "kitchen", unsigned: true })
  kitchen: number;

  @Column("int", { name: "livingroom_count", unsigned: true })
  livingroomCount: number;

  @Column("int", {
    name: "balcony_count",
    unsigned: true,
    default: () => "'0'",
  })
  balconyCount: number;
}
